import request from '@/sheep/request';

export default {
    //上交合同列表
    contract_submitIndex: (params) =>
        request({
        url: 'api/contract_submit/index',
        method: 'GET',
        params,
        custom: {
            showSuccess: false,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: true,
            loadingMsg: '加载中',
            auth: true,
        },
    }),
    //上交合同详情
    contract_submitView: (params) =>
        request({
        url: 'api/contract_submit/view',
        method: 'GET',
        params,
        custom: {
            showSuccess: false,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: false,
            loadingMsg: '加载中',
            auth: true,
        },
    }),
    //上交合同确认
    contract_submitConfirm: (params) =>
        request({
        url: 'api/contract_submit/confirm',
        method: 'POST',
        params,
        custom: {
            showSuccess: false,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: false,
            loadingMsg: '加载中',
            auth: true,
        },
    }),
    // 上交合同上交
    contract_submitAdd: (params) =>
        request({
        url: 'api/contract_submit/add',
        method: 'POST',
        params,
        custom: {
            showSuccess: false,
            successMsg: '',
            showError: true,
            errorMsg: '',
            showLoading: false,
            loadingMsg: '加载中',
            auth: true,
        },
    }),
}